<template>
  <div class="container">
    <div class="navber">
      <div class="title">
        <ul>
          <router-link to="/dataview/TotalData/everyday" tag="li">当日</router-link>
          <router-link to="/dataview/TotalData/everyweek" tag="li">当周</router-link>
          <router-link to="/dataview/TotalData/everymonth" tag="li">当月</router-link>
        </ul>
      </div>
      <div class="content">
        <router-view></router-view>
      </div>
      <div class="his_waring">
        <p class="waring_title">
          <span class="p_title">历史报警</span>
          <span @click="MoreMsg">查看更多</span>
        </p>
        <ul>
          <li>
            <span>过热报警</span>
            <span>2019/01/01 10:10</span>
          </li>
          <li>
            <span>过热报警</span>
            <span>2019/01/01 10:10</span>
          </li>
          <li>
            <span>过热报警</span>
            <span>2019/01/01 10:10</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: []
    }
  },
  mounted() {

  },
  methods: {
    MoreMsg() {
       this.$router.push({name:"waring"})
    }
  }
};
</script>
<style lang="scss" scoped>
.container {
  ul {
    padding: 0;
    margin: 0;
    li {
      list-style: none;
    }
  }
  .navber {
    .title {
      ul {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        width: 80%;
        margin: 0 auto;
        li {
          flex: 1;
          list-style: none;
          color: #000;
          padding: 0.05rem 0;
          margin: 0 0.15rem;
          font-size: 0.14rem;
          padding-bottom: 0.06rem;
          border-bottom: 3px solid transparent;
        }
        .router-link-active {
          border-bottom: 3px solid #7f8fc3;
        }
      }
    }
    .content {
      padding-top: 0.2rem;
    }
  }
  .his_waring{
    .waring_title{
      display: flex;
      justify-content: space-between;
      padding: 0 0.1rem;
      .p_title{
        font-size: 0.18rem;
        color: #000;
      }
    }
    ul{
      li{
        color: #ffffff;
        line-height: 0.4rem;
        background: #7f8fc3;
        border-radius: 0.05rem;
        margin: 0.05rem;
        padding: 0 0.15rem;
        font-size: 0.14rem;
        display: flex;
        justify-content: space-between;
      }
    }
  }
}
</style>
